'''
Created on 23/09/2012

@author: Charles Murray
'''
from Subtree import *
from string import *

class Model(object):
    '''
    classdocs
    '''


    def __init__(self, start, end, subtree):
        '''
        Constructor
        '''
        if type(subtree) != Subtree:
            raise ValueError("Subtree wrong type.") 
        self.subtree = subtree
        self.start = start
        self.end = end
        
    def getSubtree(self):
        return self.subtree
    
    def getStart(self):
        return self.start
        
    def getEnd(self):
        return self.end
    
    def getInfo(self):
        return "Model"